<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="pragram" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache, must-revalidate"/>
    <meta http-equiv="expires" content="0"/>
    <meta name="renderer" content="webkit"/>
    <title>案件调查</title>

    <link rel="stylesheet" href="/assets/css/lib/pagination.css">
    <link rel="stylesheet" href="/assets/css/lib/bootstrap.min.css">
    <link rel="stylesheet" href="/assets/css/common.css">
    <link rel="stylesheet" href="/assets/css/caseinvstg.css">
</head>
<body>
<div  id="cms">
    <jsp:include page="title_bar.jsp"/>
    <jsp:include page="tab_bar.jsp"/>
    <div class="cms-content">
        <div class="current-place">
            <div class="place-title">当前位置:</div>
            <div class="place-val">首页/案件调查</div>
        </div>
        <div class="seek-box">
            <div class="common-title">
                <div class="common-left-line"></div>
                <div class="common-text">条件查询</div>
            </div>
            <div class="seek-content">
                <div class="seek-group">
                    <div class="seek-unit">
                        <span class="seek-unit-left">客户姓名</span>
                        <div class="seek-unit-right">
                            <input type="text" class="form-control uname">
                        </div>
                    </div>
                    <div class="seek-unit">
                        <span class="seek-unit-left">客户电话</span>
                        <div class="seek-unit-right">
                            <input type="text" class="form-control uphone">
                        </div>
                    </div>
                    <div class="seek-unit">
                        <span class="seek-unit-left">提交时刻</span>
                        <div class="seek-unit-right">
                            <input type="text" class="Wdate " id="start-time"/>
                            <span>-</span>
                            <input type="text" class="Wdate " id="end-time"/>
                        </div>
                    </div>

                    <div class="seek-unit">
                        <span class="seek-unit-left">案件类型</span>
                        <div class="seek-unit-right">
                            <select class="form-control casetype" id="casetype">
                                <option value="">全部</option>
                                <option value="1">金融借贷</option>
                                <option value="2">合同纠纷</option>
                                <option value="94">房屋地产</option>
                                <option value="95">婚姻家庭</option>
                                <option value="96">交通事故</option>
                                <option value="97">刑事治安</option>
                                <option value="98">行政赔偿</option>
                                <option value="99">劳动争议</option>
                                <option value="112">其他</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="seek-group">

                <div class="seek-unit">
                        <span class="seek-unit-left">地区</span>
                        <div class="seek-unit-right">
                            <div id="distpicker1" class="distpicker">
                                <div class="form-group">
                                    <select class="form-control province"></select>
                                </div>
                                <div class="form-group">
                                    <select class="form-control city"></select>
                                </div>
                                <div class="form-group">
                                    <select class="form-control district"></select>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="seek-unit">
                        <span class="seek-unit-left">发布时间</span>
                        <div class="seek-unit-right">
                            <input type="text" class="Wdate " id="start-fbdatetime"/>
                            <span>-</span>
                            <input type="text" class="Wdate " id="end-fbdatetime"/>
                        </div>
                    </div>
                    <div class="seek-unit">
                        <span class="seek-unit-left">案源等级</span>
                        <div class="seek-unit-right">
                            <select class="classification" name="level_option" id="level_option" >
                                <option value="">全部</option>
                                <option value="1">一级</option>
                                <option value="2">二级</option>
                                <option value="3">三级</option>
                                <option value="4">四级</option>
                            </select>
                        </div>
                        <span class="seek-unit-left">案源状态</span>
                        <div class="seek-unit-right">
                            <select class="classification" name="buystatus_option" id="buystatus_option"   >
                                <option value="" selected>全部</option>
                                <option value="0" >未发布</option>
                                <option value="1">已发布</option>
                                <option value="2">未领取</option>
                                <option value="3">已领取</option>
                            </select>
                        </div>
                    </div>


                    </div>
                <div class="seek-group">

                <div class="seek-unit">
                        <span class="seek-unit-left">手机归属地</span>
                        <div class="seek-unit-right">
                            <div class="seek-unit-right">
                                <div id="distpicker2" class="distpicker">
                                    <div class="form-group">
                                        <select class="form-control province" id="province2"></select>
                                    </div>
                                    <div class="form-group">
                                        <select class="form-control city" id="city2"></select>
                                    </div>
                                    <div class="form-group">
                                        <select class="form-control district" id="district2"></select>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="seek-unit">
                        <span class="seek-unit-left">领取时间</span>
                        <div class="seek-unit-right">
                            <input type="text" class="Wdate " id="start-lqdatetime"/>
                            <span>-</span>
                            <input type="text" class="Wdate " id="end-lqdatetime"/>
                        </div>
                    </div>
                    <div class="seek-unit">
                        <div class="seek-unit-left seek-btn"  >
                            查询
                        </div>
                        <div class="seek-unit-right seek-clear">
                            清空条件
                        </div>
                        <div class="seek-unit-right exportxls" onclick="exportxls()">
                            导出xls
                        </div>
                    </div>
                    </div>


            </div>
        </div>
        <div class="table-box">
            <div class="table-top">
                <table class="table table-bordered" id="table1" >
                    <thead>

                    <tr>
                        <th  style="width: 10px;" >
                            <div>行号</div>
                        </th>

                        <th style="max-width: 20px;">
                            <div>客户姓名</div>
                        </th>
                        <th>
                            <div>客户手机号</div>
                        </th>
                        <th>
                            <div>手机号归属地</div>
                        </th>
                        <th>
                            <div>地区</div>
                        </th>
                        <th style="max-width: 50px; ">
                            <div>案件类型</div>
                        </th>
                        <th>
                            <div>案件描述</div>
                        </th>
                        <th>
                            <div>备注</div>
                        </th>
                        <th>
                            <div>提交时间</div>
                        </th>

                        <th style="max-width: 10px; ">
                            <div>等级</div>
                        </th>
                        <th>
                            <div>领取状态</div>
                        </th>
                        <th>
                            <div>领取律师</div>
                        </th>
                        <th>
                            <div>内部编号</div>
                        </th>
                        <th>
                            <div>发布时间</div>
                        </th>
                        <th>
                            <div>领取时间</div>
                        </th>

                        <%--<th>
                            <div>案件金额</div>
                        </th>
                        <th>
                            购买方式
                            <select class="form-control gmfs_option" id="gmfs_option" onchange="gmfs_change()">
                                <option value="">全部</option>
                                <option value="0">微信</option>
                                <option value="1">支付宝</option>
                            </select>
                        </th>
                        <th>
                            <div>交易单号</div>
                        </th>
                        <th>
                            <div>交易时间</div>
                        </th>
                        <th>
                            <div>交易账户</div>
                        </th>--%>
                        <th>
                            <div>操作</div>
                        </th>



                    </tr>
                    </thead>
                    <tbody id="tbody">
                    </tbody>
                    <script id="tbodyscript" type="text/html">
                        <!for(k in result){
                        var v=result[k];
                        !>
                        <tr>
                            <td class="rowno"  style="width: 10px;"><!=v.rowno!></td>

                            <td class="uname"><!=v.uname!></td>
                            <td class="uphone" style="max-width: 20px;  word-wrap: break-word;"><!=v.uphone!></td>
                            <td class="uphonearea"   style="max-width: 30px;  word-wrap: break-word;"><!=v.uphonearea==null?'':v.uphonearea!></td>
                            <td class="area"  style="max-width: 30px;  word-wrap: break-word;"><!=v.area!></td>
                            <td class="casetypename" style="max-width: 50px; "><!=v.casetypename!></td>
                            <td class="casedesc two-row"  onclick="showDetail(this)"><div class="p" ><!=v.casedesc!></div> <img src="/assets/images/rectangle.png"  ></td>
                            <td class="remark"><!=v.remark==null?'':v.remark!></td>
                            <td class="createTime"><!=getFormatDate(v.createTime)!></td>

                            //案源等级
                            <td class="level" style="max-width: 10px; "><!=v.level==null?'':v.level!></td>
                            //领取状态
                            <td class="buystatus"><!=v.buystatus==null?'':v.buystatus==0?'未发布':(v.buystatus==1?'已发布':(v.buystatus==2?'未领取':(v.buystatus==3?'已领取':'')))!></td>
                            //领取律师id
                            <td class="lvid"><a href="/lawyer/findLawyerDetailInfo?lawyerid=<!=v.lvid!>"><!=v.lawyername==null?'':v.lawyername!></a>  </td>
                            //领取律师id
                            <td class="lvid"><a href="/lawyer/findLawyerDetailInfo?lawyerid=<!=v.lvid!>"><!=v.lvid==null?'':v.lvid!></a>  </td>
                            //案源发布时间
                            <td class="fbdatetime"><!=v.fbdatetime==null?'':getFormatDate(v.fbdatetime)!></td>
                            //案源领取时间
                            <td class="lqdatetime"><!=v.lqdatetime==null?'':getFormatDate(v.lqdatetime)!></td>
                            <%--
                            //案件金额
                            <td class="ajje"><!=v.ajje==null?'':back_money_handler(v.ajje/100)!></td>
                            //购买方式(微信、支付宝)
                            <td class="gmfs"><!=v.gmfs==null?'':(v.gmfs==0?'微信':'支付宝')!></td>
                            //交易单号(律师支付的交易单号)
                            <td class="jydh"><!=v.jydh==null?'':v.jydh!></td>
                            //交易时间
                            <td class="jydate"><!=v.jydate==null?'':getFormatDate(v.jydate)!></td>
                            //交易账户(对应微信或支付宝账号)
                            <td class="jyzh"><!=v.jyzh==null?'':v.jyzh!></td>--%>
                            <td class="operate">
                                <!if(role==0 && v.buystatus==0){!>
                                <div class="edit-btn"
                                     data-value="<!=v.id!>"
                                     id-value="<!=v.id!>"
                                     onclick="showfabu(this)">发布
                                </div>
                                <!}else{!>
                                <div class="edit-btn"
                                     data-value="<!=v.id!>"
                                     id-value="<!=v.id!>"
                                     onclick="editshow(this)">编辑
                                </div>
                                <!}!>
                            </td>
                        </tr>
                        <!}!>
                    </script>
                </table>
            </div>


            <div class="table-bottom clearfix" >
                <div id="Pagination" class="pagination"><!-- 这里显示分页--></div>
                <span id="currentCount"></span>
            </div>
        </div>
    </div>
</div>

</div>


<div class="cms-modal-lg" id='fabulg'>
    <div class="cms-modal-dialog">
        <div class="cms-modal-title">发布信息</div>
        <div class="cms-madal-content">
            <div class="state-unit">
                <div class="two-stage">
                    <div style="display: none">
                        <input type="text" name="id" id="id_edit">
                    </div>
                    <div class="state-left">
                        案源等级
                        <select class="selectcj form-control" id="level_edit">
                            <option value="1">一级</option>
                            <option value="2">二级</option>
                            <option value="3">三级</option>
                            <option value="4">四级</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="two-stage">
                <div class="state-left">
                    <span>备注</span>
                </div>
            </div>
            <textarea placeholder="请输入备注" class="common-remark" id="remark_edit" maxlength="200"></textarea>
            <div class="limit200">限200字</div>
        </div>
        <div class="cms-modal-bottom">
            <button type="button" class="cms-confirm edit-confirm" onclick="fabu()">确定</button>
            <button type="button" class="cms-cancel edit-cancel" onclick="hideDialog()">取消</button>
        </div>
    </div>
</div>
<div class="cms-modal-lg" id='editlg'>
    <div class="cms-modal-dialog">
        <div class="cms-modal-title">编辑信息</div>
        <div class="cms-madal-content">
            <div class="state-unit">
                <div class="two-stage">
                    <div style="display: none">
                        <input type="text" name="id" id="id_edit2">
                    </div>
                    <div class="state-left">
                        案源等级
                        <select class="selectcj form-control" id="level_edit2">
                            <option value="1">一级</option>
                            <option value="2">二级</option>
                            <option value="3">三级</option>
                            <option value="4">四级</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="two-stage">
                <div class="state-left">
                    <span>备注</span>
                </div>
            </div>
            <textarea placeholder="请输入备注" class="common-remark" id="remark_edit2" maxlength="200"></textarea>
            <div class="limit200">限200字</div>
        </div>
        <div class="cms-modal-bottom">
            <button type="button" class="cms-confirm edit-confirm" onclick="fabu2()">确定</button>
            <button type="button" class="cms-cancel edit-cancel" onclick="hideDialog()">取消</button>
        </div>
    </div>
</div>
<!--编辑信息-->



</body>
<script type="text/javascript" src="/assets/js/lib/jquery-1.12.3.js"></script>
<script type="text/javascript" src="/assets/js/lib/jquery.validate.js"></script>
<script type="text/javascript" src="/assets/js/lib/jquery.validate.messages_cn.js"></script>

<script type="text/javascript" src="/assets/js/lib/bootstrap.min.js"></script>
<script type="text/javascript" src="/assets/js/lib/modal.js"></script>
<script type="text/javascript" src="/assets/js/lib/cmsmodal.js"></script>

<script type="text/javascript" src="/assets/js/lib/distpicker.data.js"></script>
<script type="text/javascript" src="/assets/js/lib/distpicker.js"></script>
<script type="text/javascript" src="/assets/js/lib/jquery.pagination.js"></script>

<script type="text/javascript" src="/assets/js/lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/assets/js/common.js"></script>
<script type="text/javascript" src="/assets/js/communal/template.js"></script>
<script type="text/javascript" src="/assets/js/caseinvstg.js"></script>
</html>